﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using LEDStripMixer.Shared.Extensions;

namespace LEDStripMixer.Views.Configuration
{
    public class ConfigurationBindModel
    {
        public string COMPort { get; set; }

        public Int32 BaudRate { get; set; }

        public Int32 FPS { get; set; }

        public bool IsValid()
        {
            return COMPort.IsNotNullOrEmpty() && BaudRate.IsPositiveInteger() && FPS.IsPositiveInteger();
        }
    }
}
